package com.k.note;

import android.app.Activity;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.util.Log;
import android.widget.Toast;


import java.util.ArrayList;
import java.util.List;

/**
 * Created by mac_wk on 14-11-20.
 */
public class TestActivity extends Activity {
    public List<Integer>data;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }
    @Override
    protected void onStart() {
        super.onStart();
        if (data==null)
        {
            Toast.makeText(this,"null",Toast.LENGTH_SHORT).show();
            data = new ArrayList<Integer>();
        }
        data.add(1);
        Log.e("TestActivity","onStart");
        ActivityInstance.activityList.add(this);

    }
    @Override
    protected void onStop() {
        super.onStop();
        Log.e("TestActivity","onStop");

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e("TestActivity","onDestroy");
    }
}
